import cv2
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'

img = cv2.imread('Resources/ceshi.jpg')
text = pytesseract.image_to_string(img, config='--psm 11')
print(text)